package com.ax.center.urils;

import com.ax.center.dto.CO;

/**
 * @author zy
 * @date 2023/6/4 20:28
 */
public class UserHolder {
    private static final ThreadLocal<CO> userHolder=new ThreadLocal<>();

    public static void setUserHolder(CO CO){
        userHolder.set(CO);
    }

    public static CO getUser(){
        return userHolder.get();
    }

    public static void removeUser(){
        userHolder.remove();
    }
}
